<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AlertImageToCompanyProfileTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('company_profile', function (Blueprint $table) {
            $table->string('petrel_image')->alert('recommend')->nullable()->comment('广东海燕电子音像介绍图');
            $table->string('province_image')->alert('recommend')->nullable()->comment('广东语言音像介绍图');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('company_profile', function (Blueprint $table) {
            $table->dropColumn('petrel_image');
            $table->dropColumn('province_image');
        });
    }
}
